home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / misc_lib / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  3.0 KB  |  113 lines

  1. #
  2. # This is the make file for the misc. lib subdirectory.
  3. #
  4. #                Gershon Elber, Aug 1991
  5. #
  6.  
  7. #------
  8. #
  9. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  10. # is sourced from several directories relative path specification will
  11. # be simple wrong.
  12. #
  13.  
  14. SRC_DIR = Work:T/Irit
  15. #
  16. # All libraries created will be installed into the LIB_DIR directory.
  17. #
  18. LIB_DIR = $(SRC_DIR)/lib
  19.  
  20. #
  21. # All includes files associated with the installed libraries will be
  22. # installed into the INC_DIR directory.
  23. #
  24. INC_DIR = $(SRC_DIR)/inc
  25.  
  26. #
  27. # All binaries created will be installed into the BIN_DIR directory.
  28. #
  29. BIN_DIR = $(SRC_DIR)/bin
  30.  
  31. #
  32. # Uncomment the correct set of variables to be used or modify it for
  33. # your system.
  34. #
  35. # -D flags:
  36. #
  37. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  38. #
  39. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  40. #    be used.
  41. #
  42. #  Emulation to the following function are available by defining the
  43. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  44. # -DGETCWD - if getcwd is not defined in this system.
  45. # -DSTRSTR - if strstr is not defined in this system.
  46. # -DSTRDUP - if strdup is not defined in this system.
  47. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  48. #
  49. # -DTIMES - if times is defined in your system, otherwise uses time.
  50. #
  51. # -DRAND - if the (s)rand random number generator exists.
  52. # -DRAND48 - ?rand48 random number generators exists.
  53. #    If non of RAND or RAND48 are defined, (s)random is used.
  54. #
  55. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  56. #
  57. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  58. #    varargs.h.
  59. #
  60. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  61. #
  62. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  63. #
  64. # Other, possibly useful defines (for c code development):
  65. #
  66. # -DDEBUG - for some debugging functions in the code (that can be invoked
  67. #        from a debugger).
  68. #
  69.  
  70. #
  71. # Flags for Amiga using SAS/C
  72. #
  73. # Use DEFINE=M68881 if you have a 68881/68882/68040
  74. # Use DEFINE=MIEEE if you want to use the IEEE math library
  75. # Use DEFINE=MFFP if you want to use the FFP math library
  76. #
  77. CC = sc
  78. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  79. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  80. MORELIBS = 
  81. GRAPDRVS =nuldrvs amidrvs
  82.  
  83. #
  84. # Default rule for compilation.
  85. #
  86. .c.o:
  87.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  88.  
  89. #
  90. # All libraries.
  91. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  92.        $(LIB_DIR)/misc.lib #$(LIB_DIR)/gif.lib
  93. #------
  94.  
  95. OBJS =  config.o genmat.o getarg.o imalloc.o irit_ftl.o ln_sweep.o \
  96.     miscattr.o miscatt2.o priorque.o xgeneral.o
  97.  
  98. misc.lib: $(OBJS)
  99.     oml misc.lib r $(OBJS)
  100.  
  101. install: misc.lib
  102.     Copy CLONE misc.lib $(LIB_DIR)
  103.     Delete misc.lib
  104.     Copy \#?.h $(INC_DIR)
  105.  
  106. # Dependencies starts here - do not touch, generated automatically.
  107. config.o:    config.h imalloc.h
  108. genmat.o:    genmat.h
  109. getarg.o:    getarg.h imalloc.h
  110. imalloc.o:    imalloc.h
  111. priorque.o:    priorque.h imalloc.h
  112. xgeneral.o:    imalloc.h
  113.